home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Crux / metacity-1 / metacity-theme-2.xml < prev   
Encoding:
Extensible Markup Language  |  2009-05-14  |  30.5 KB  |  833 lines

  1. <?xml version="1.0"?>
  2. <metacity_theme>
  3. <info>
  4.   <name>Crux</name>
  5.   <author>Anders Carlsson <andersca@gnu.org></author>
  6.   <copyright> Eazel Inc, 2000</copyright>
  7.   <date>February 6, 2002</date>
  8.   <description>A port of the Crux theme by Arlo Rose and John Harper</description>
  9. </info>
  10.  
  11. <!-- define constants -->
  12. <constant name="IconTitleSpacing" value="2"/> <!-- Space between menu button and title -->
  13. <constant name="CenterTitlePieceWidth" value="48"/> <!-- Width of center title piece -->
  14. <constant name="ButtonWidth" value="16"/> <!-- Button width -->
  15.  
  16. <frame_geometry name="normal">
  17.   <distance name="left_width" value="5"/>
  18.   <distance name="right_width" value="6"/>
  19.   <distance name="bottom_height" value="6"/>
  20.   <distance name="left_titlebar_edge" value="5"/>
  21.   <distance name="right_titlebar_edge" value="6"/>
  22.   <aspect_ratio name="button" value="1.0"/>
  23.   <distance name="title_vertical_pad" value="0"/>
  24.   <border name="title_border" left="0" right="0" top="3" bottom="3"/>
  25.   <border name="button_border" left="0" right="0" top="3" bottom="3"/>
  26. </frame_geometry>
  27.  
  28. <frame_geometry name="border" has_title="false">
  29.   <distance name="left_width" value="5"/>
  30.   <distance name="right_width" value="6"/>
  31.   <distance name="bottom_height" value="6"/>
  32.   <distance name="left_titlebar_edge" value="0"/>
  33.   <distance name="right_titlebar_edge" value="0"/>
  34.   <distance name="button_width" value="0"/>
  35.   <distance name="button_height" value="0"/>
  36.   <distance name="title_vertical_pad" value="5"/>
  37.   <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  38.   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  39. </frame_geometry>
  40.  
  41. <!-- Buttons -->
  42.  
  43. <draw_ops name="active_button">
  44.   <image filename="active-button.png" x="0" y="0" width="width" height="height"/>
  45. </draw_ops>
  46.  
  47. <draw_ops name="active_button_pressed">
  48.   <image filename="active-button-pressed.png" x="0" y="0" width="width" height="height"/>
  49. </draw_ops>
  50.  
  51. <draw_ops name="active_button_prelight">
  52.   <image filename="active-button-prelight.png" x="0" y="0" width="width" height="height"/>
  53. </draw_ops>
  54.  
  55. <draw_ops name="inactive_button">
  56.   <image filename="inactive-button.png" x="0" y="0" width="width" height="height"/>
  57. </draw_ops>
  58.  
  59. <draw_ops name="inactive_button_pressed">
  60.   <image filename="inactive-button-pressed.png" x="0" y="0" width="width" height="height"/>
  61. </draw_ops>
  62.  
  63. <draw_ops name="inactive_button_prelight">
  64.   <image filename="inactive-button-prelight.png" x="0" y="0" width="width" height="height"/>
  65. </draw_ops>
  66.  
  67. <!-- Inactive style -->
  68. <frame_style name="normal" geometry="normal">
  69.   <piece position="left_edge">
  70.     <draw_ops>
  71.       <image filename="inactive-left-border.png" x="0" y="0" width="object_width" height="height"/>
  72.     </draw_ops>
  73.   </piece>
  74.  
  75.   <piece position="right_edge">
  76.     <draw_ops>
  77.       <image filename="inactive-right-border.png" x="0" y="0" width="object_width" height="height"/>
  78.     </draw_ops>
  79.   </piece>
  80.  
  81.   <piece position="title">
  82.     <draw_ops>
  83.       <title color="gtk:fg[SELECTED]" x="IconTitleSpacing" y="0"/>
  84.     </draw_ops>
  85.   </piece>
  86.  
  87.   <piece position="titlebar">
  88.     <draw_ops>
  89.  
  90.       <image filename="inactive-left-top-border.png" 
  91.              x="0" y="0" width="object_width" height="height"/>
  92.       <image filename="inactive-right-top-border.png" 
  93.              x="width - object_width" y="0" width="object_width" height="height"/>
  94.  
  95.       <image filename="inactive-top-center-left.png" 
  96.              x="4" y="0" 
  97.              width="(left_width + ButtonWidth + IconTitleSpacing + title_width) `min`
  98.                     (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth * height / 22 - 3)" 
  99.              height="height"/>
  100.  
  101.       <image filename="inactive-top-center-mid.png" 
  102.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width * height / 22 - right_width - 3 * ButtonWidth)) + 1"
  103.              y="0" width="object_width * height / 22" height="height"/>
  104.  
  105.       <image filename="inactive-top-center-right.png"
  106.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width + CenterTitlePieceWidth * height / 22) `min` (width - 3 * ButtonWidth - right_width)) + 1"
  107.              y="0"
  108.              width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - CenterTitlePieceWidth * height / 22 - right_width) `max` (3 * ButtonWidth)"
  109.              height="height"/>
  110.  
  111.     </draw_ops>
  112.   </piece>
  113.  
  114.   <!-- We have to draw the bottom edge in the background piece 
  115.        because that's the only way we can get the correct window height -->
  116.   <piece position="overlay">
  117.     <draw_ops>
  118.       <image filename="inactive-bottom-left-corner.png" 
  119.              x="0" y="height - object_height" width="object_width" height="object_height"/>
  120.       <image filename="inactive-bottom-left-border.png" x="5" y="height - object_height" 
  121.              width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
  122.              height="object_height"/>
  123.       <image filename="inactive-bottom-mid-border.png" 
  124.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  125.              y="height - object_height" width="object_width" height="object_height"/>
  126.  
  127.       <image filename="inactive-bottom-right-border.png"
  128.              x="((title_width + height / 2 + 32)) + 1" 
  129.              y="height - object_height" 
  130.              width="(width - title_width - height / 2 - 32 - 7) `max` 0"
  131.              height="object_height"/>
  132.  
  133.       <image filename="inactive-bottom-right-corner.png" 
  134.              x="width - object_width" y="height - object_height" width="object_height" height="object_height"/>
  135.  
  136.     </draw_ops>
  137.   </piece>
  138.  
  139.   <button function="close" state="normal">
  140.     <draw_ops>
  141.       <include name="inactive_button"/>
  142.       <image filename="inactive-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  143.     </draw_ops>
  144.   </button>
  145.  
  146.   <button function="close" state="pressed">
  147.     <draw_ops>
  148.       <include name="inactive_button_pressed"/>
  149.       <image filename="inactive-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  150.     </draw_ops>
  151.   </button>
  152.  
  153.   <button function="close" state="prelight">
  154.     <draw_ops>
  155.       <include name="inactive_button_prelight"/>
  156.       <image filename="inactive-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  157.     </draw_ops>
  158.   </button>
  159.  
  160.   <button function="minimize" state="normal">
  161.     <draw_ops>
  162.       <include name="inactive_button"/>
  163.       <image filename="inactive-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  164.     </draw_ops>
  165.   </button>
  166.  
  167.   <button function="minimize" state="pressed">
  168.     <draw_ops>
  169.       <include name="inactive_button_pressed"/>
  170.       <image filename="inactive-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  171.     </draw_ops>
  172.   </button>
  173.  
  174.   <button function="minimize" state="prelight">
  175.     <draw_ops>
  176.       <include name="inactive_button_prelight"/>
  177.       <image filename="inactive-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  178.     </draw_ops>
  179.   </button>
  180.  
  181.   <button function="maximize" state="normal">
  182.     <draw_ops>
  183.       <include name="inactive_button"/>
  184.       <image filename="inactive-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  185.     </draw_ops>
  186.   </button>
  187.  
  188.   <button function="maximize" state="pressed">
  189.     <draw_ops>
  190.       <include name="inactive_button_pressed"/>
  191.       <image filename="inactive-maximize-button.png" x="2" y="2" width="width - 4" height="height - 4"/>
  192.     </draw_ops>
  193.   </button>
  194.  
  195.   <button function="maximize" state="prelight">
  196.     <draw_ops>
  197.       <include name="inactive_button_prelight"/>
  198.       <image filename="inactive-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  199.     </draw_ops>
  200.   </button>
  201.  
  202.   <button function="unshade" state="normal">
  203.     <draw_ops>
  204.       <include name="inactive_button"/>
  205.       <image filename="inactive-unshade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  206.     </draw_ops>
  207.   </button>
  208.  
  209.   <button function="unshade" state="pressed">
  210.     <draw_ops>
  211.       <include name="inactive_button_pressed"/>
  212.       <image filename="inactive-unshade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  213.     </draw_ops>
  214.   </button>
  215.  
  216.   <button function="unshade" state="prelight">
  217.     <draw_ops>
  218.       <include name="inactive_button_prelight"/>
  219.       <image filename="inactive-unshade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  220.     </draw_ops>
  221.   </button>
  222.  
  223.   <button function="shade" state="normal">
  224.     <draw_ops>
  225.       <include name="inactive_button"/>
  226.       <image filename="inactive-shade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  227.     </draw_ops>
  228.   </button>
  229.  
  230.   <button function="shade" state="pressed">
  231.     <draw_ops>
  232.       <include name="inactive_button_pressed"/>
  233.       <image filename="inactive-shade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  234.     </draw_ops>
  235.   </button>
  236.  
  237.   <button function="shade" state="prelight">
  238.     <draw_ops>
  239.       <include name="inactive_button_prelight"/>
  240.       <image filename="inactive-shade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  241.     </draw_ops>
  242.   </button>
  243.  
  244.   <button function="unabove" state="normal">
  245.     <draw_ops>
  246.       <include name="inactive_button"/>
  247.       <image filename="inactive-unabove-button.png" x="2" y="2" width="width-4" height="height-4"/>
  248.     </draw_ops>
  249.   </button>
  250.  
  251.   <button function="unabove" state="pressed">
  252.     <draw_ops>
  253.       <include name="inactive_button_pressed"/>
  254.       <image filename="inactive-unabove-button.png" x="2" y="2" width="width-4" height="height-4"/>
  255.     </draw_ops>
  256.   </button>
  257.  
  258.   <button function="unabove" state="prelight">
  259.     <draw_ops>
  260.       <include name="inactive_button_prelight"/>
  261.       <image filename="inactive-unabove-button.png" x="2" y="2" width="width-4" height="height-4"/>
  262.     </draw_ops>
  263.   </button>
  264.  
  265.   <button function="above" state="normal">
  266.     <draw_ops>
  267.       <include name="inactive_button"/>
  268.       <image filename="inactive-above-button.png" x="2" y="2" width="width-4" height="height-4"/>
  269.     </draw_ops>
  270.   </button>
  271.  
  272.   <button function="above" state="pressed">
  273.     <draw_ops>
  274.       <include name="inactive_button_pressed"/>
  275.       <image filename="inactive-above-button.png" x="2" y="2" width="width-4" height="height-4"/>
  276.     </draw_ops>
  277.   </button>
  278.  
  279.   <button function="above" state="prelight">
  280.     <draw_ops>
  281.       <include name="inactive_button_prelight"/>
  282.       <image filename="inactive-above-button.png" x="2" y="2" width="width-4" height="height-4"/>
  283.     </draw_ops>
  284.   </button>
  285.  
  286.   <button function="stick" state="normal">
  287.     <draw_ops>
  288.       <include name="inactive_button"/>
  289.       <image filename="inactive-stick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  290.     </draw_ops>
  291.   </button>
  292.  
  293.   <button function="stick" state="pressed">
  294.     <draw_ops>
  295.       <include name="inactive_button_pressed"/>
  296.       <image filename="inactive-stick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  297.     </draw_ops>
  298.   </button>
  299.  
  300.   <button function="stick" state="prelight">
  301.     <draw_ops>
  302.       <include name="inactive_button_prelight"/>
  303.       <image filename="inactive-stick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  304.     </draw_ops>
  305.   </button>
  306.  
  307.   <button function="unstick" state="normal">
  308.     <draw_ops>
  309.       <include name="inactive_button"/>
  310.       <image filename="inactive-unstick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  311.     </draw_ops>
  312.   </button>
  313.  
  314.   <button function="unstick" state="pressed">
  315.     <draw_ops>
  316.       <include name="inactive_button_pressed"/>
  317.       <image filename="inactive-unstick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  318.     </draw_ops>
  319.   </button>
  320.  
  321.   <button function="unstick" state="prelight">
  322.     <draw_ops>
  323.       <include name="inactive_button_prelight"/>
  324.       <image filename="inactive-unstick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  325.     </draw_ops>
  326.   </button>
  327.  
  328.   <button function="menu" state="normal">
  329.     <draw_ops>
  330.       <image filename="inactive-menu-button.png" x="0" y="0" width="width" height="height"/>
  331.     </draw_ops>
  332.   </button>
  333.  
  334.   <button function="menu" state="pressed">
  335.     <draw_ops>
  336.       <image filename="inactive-menu-button-pressed.png" x="0" y="0" width="width" height="height"/>
  337.     </draw_ops>
  338.   </button>
  339.  
  340.   <button function="menu" state="prelight">
  341.     <draw_ops>
  342.       <image filename="inactive-menu-button-prelight.png" x="0" y="0" width="width" height="height"/>
  343.     </draw_ops>
  344.   </button>
  345. </frame_style>
  346.  
  347. <frame_style name="normal_maximized" parent="normal">
  348.   <button function="maximize" state="normal">
  349.     <draw_ops>
  350.       <include name="inactive_button"/>
  351.       <image filename="inactive-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  352.     </draw_ops>
  353.   </button>
  354.  
  355.   <button function="maximize" state="pressed">
  356.     <draw_ops>
  357.       <include name="inactive_button_pressed"/>
  358.       <image filename="inactive-restore-button.png" x="2" y="2" width="width - 4" height="height - 4"/>
  359.     </draw_ops>
  360.   </button>
  361.  
  362.   <button function="maximize" state="prelight">
  363.     <draw_ops>
  364.       <include name="inactive_button_prelight"/>
  365.       <image filename="inactive-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  366.     </draw_ops>
  367.   </button>
  368.  
  369. </frame_style>
  370.  
  371. <!-- Active (focused) shaded style -->
  372.     <frame_style name="normal_shaded" geometry="normal" parent="normal">
  373.       <piece position="left_titlebar_edge">
  374.         <draw_ops>
  375.           <image filename="inactive-left-top-border-shaded.png" x="0" y="3" width="object_width" height="object_height"/>
  376.         </draw_ops>
  377.       </piece>
  378.       <piece position="right_titlebar_edge">
  379.         <draw_ops>
  380.           <image filename="inactive-right-top-border-shaded.png" x="width - object_width" y="3" width="object_width" height="object_height"/>
  381.         </draw_ops>
  382.       </piece>
  383.     </frame_style>
  384.  
  385.  
  386. <!-- Active (focused) style -->
  387. <frame_style name="focused" geometry="normal">
  388.   <piece position="left_edge">
  389.     <draw_ops>
  390.       <image colorize="gtk:bg[SELECTED]" filename="active-left-border.png" x="0" y="0" width="object_width" height="height"/>
  391.     </draw_ops>
  392.   </piece>
  393.  
  394.   <piece position="right_edge">
  395.     <draw_ops>
  396.       <image filename="active-right-border.png" x="0" y="0" width="object_width" height="height"/>
  397.     </draw_ops>
  398.   </piece>
  399.  
  400.   <piece position="title">
  401.     <draw_ops>
  402.       <title color="gtk:fg[SELECTED]" x="IconTitleSpacing" y="((height - title_height) / 2) `max` 0"/>
  403.     </draw_ops>
  404.   </piece>
  405.  
  406.   <piece position="titlebar">
  407.     <draw_ops>
  408.  
  409.       <image filename="active-left-top-border.png" 
  410.              colorize="gtk:bg[SELECTED]"
  411.              x="0" y="0" width="object_width" height="height"/>
  412.  
  413.       <image filename="active-right-top-border.png" 
  414.              x="width - object_width" y="0" width="object_width" height="height"/>
  415.  
  416.       <image filename="active-top-center-left.png" 
  417.              colorize="gtk:bg[SELECTED]"
  418.              x="4" y="0" 
  419.              width="(left_width + ButtonWidth + IconTitleSpacing + title_width) `min`
  420.                     (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth * height / 22 - 3)" 
  421.              height="height"/>
  422.  
  423.       <image filename="active-top-center-mid-left.png" 
  424.              colorize="gtk:bg[SELECTED]"
  425.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width * height / 22 - right_width - 3 * ButtonWidth)) + 1"
  426.              y="0" width="object_width * height / 22" height="height"/>
  427.  
  428.       <image filename="active-top-center-mid-right.png" 
  429.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width * height / 22 - right_width - 3 * ButtonWidth)) + 1"
  430.              y="0" width="object_width * height / 22" height="height"/>
  431.  
  432.       <image filename="active-top-center-right.png"
  433.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width + CenterTitlePieceWidth * height / 22) `min` (width - 3 * ButtonWidth - right_width)) + 1"
  434.              y="0"
  435.              width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - CenterTitlePieceWidth * height / 22 - right_width) `max` (3 * ButtonWidth)"
  436.              height="height"/>
  437.  
  438.     </draw_ops>
  439.   </piece>
  440.  
  441.   <!-- We have to draw the bottom edge in the background piece 
  442.        because that's the only way we can get the correct window height -->
  443.   <piece position="overlay">
  444.     <draw_ops>
  445.       <image filename="active-bottom-left-corner.png" 
  446.              colorize="gtk:bg[SELECTED]"
  447.              x="0" y="height - object_height" width="object_width" height="object_height"/>
  448.       <image filename="active-bottom-left-border.png" x="5" y="height - object_height" 
  449.              colorize="gtk:bg[SELECTED]"
  450.              width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
  451.              height="object_height"/>
  452.       <image filename="active-bottom-mid-left-border.png" 
  453.              colorize="gtk:bg[SELECTED]"
  454.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  455.              y="height - object_height" width="object_width" height="object_height"/>
  456.       <image filename="active-bottom-mid-right-border.png" 
  457.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  458.              y="height - object_height" width="object_width" height="object_height"/>
  459.  
  460.       <image filename="active-bottom-right-border.png"
  461.              x="((title_width + height / 2 + 32)) + 1" 
  462.              y="height - object_height" 
  463.              width="(width - title_width - height / 2 - 32 - 7) `max` 0"
  464.              height="object_height"/>
  465.  
  466.       <image filename="active-bottom-right-corner.png" 
  467.              x="width - object_width" y="height - object_height" width="object_height" height="object_height"/>
  468.  
  469.     </draw_ops>
  470.   </piece>
  471.  
  472.   <button function="close" state="normal">
  473.     <draw_ops>
  474.       <include name="active_button"/>
  475.       <image filename="active-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  476.     </draw_ops>
  477.   </button>
  478.  
  479.   <button function="close" state="pressed">
  480.     <draw_ops>
  481.       <include name="active_button_pressed"/>
  482.       <image filename="active-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  483.     </draw_ops>
  484.   </button>
  485.  
  486.   <button function="close" state="prelight">
  487.     <draw_ops>
  488.       <include name="active_button_prelight"/>
  489.       <image filename="active-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  490.     </draw_ops>
  491.   </button>
  492.  
  493.   <button function="minimize" state="normal">
  494.     <draw_ops>
  495.       <include name="active_button"/>
  496.       <image filename="active-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  497.     </draw_ops>
  498.   </button>
  499.  
  500.   <button function="minimize" state="pressed">
  501.     <draw_ops>
  502.       <include name="active_button_pressed"/>
  503.       <image filename="active-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  504.     </draw_ops>
  505.   </button>
  506.  
  507.   <button function="minimize" state="prelight">
  508.     <draw_ops>
  509.       <include name="active_button_prelight"/>
  510.       <image filename="active-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  511.     </draw_ops>
  512.   </button>
  513.  
  514.   <button function="maximize" state="normal">
  515.     <draw_ops>
  516.       <include name="active_button"/>
  517.       <image filename="active-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  518.     </draw_ops>
  519.   </button>
  520.  
  521.   <button function="maximize" state="pressed">
  522.     <draw_ops>
  523.       <include name="active_button_pressed"/>
  524.       <image filename="active-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  525.     </draw_ops>
  526.   </button>
  527.  
  528.   <button function="maximize" state="prelight">
  529.     <draw_ops>
  530.       <include name="active_button_prelight"/>
  531.       <image filename="active-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  532.     </draw_ops>
  533.   </button>
  534.  
  535.   <button function="shade" state="normal">
  536.     <draw_ops>
  537.       <include name="active_button"/>
  538.       <image filename="active-shade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  539.     </draw_ops>
  540.   </button>
  541.  
  542.   <button function="shade" state="pressed">
  543.     <draw_ops>
  544.       <include name="active_button_pressed"/>
  545.       <image filename="active-shade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  546.     </draw_ops>
  547.   </button>
  548.  
  549.   <button function="shade" state="prelight">
  550.     <draw_ops>
  551.       <include name="active_button_prelight"/>
  552.       <image filename="active-shade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  553.     </draw_ops>
  554.   </button>
  555.  
  556.   <button function="unshade" state="normal">
  557.     <draw_ops>
  558.       <include name="active_button"/>
  559.       <image filename="active-unshade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  560.     </draw_ops>
  561.   </button>
  562.  
  563.   <button function="unshade" state="pressed">
  564.     <draw_ops>
  565.       <include name="active_button_pressed"/>
  566.       <image filename="active-unshade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  567.     </draw_ops>
  568.   </button>
  569.  
  570.   <button function="unshade" state="prelight">
  571.     <draw_ops>
  572.       <include name="active_button_prelight"/>
  573.       <image filename="active-unshade-button.png" x="2" y="2" width="width-4" height="height-4"/>
  574.     </draw_ops>
  575.   </button>
  576.  
  577.   <button function="above" state="normal">
  578.     <draw_ops>
  579.       <include name="active_button"/>
  580.       <image filename="active-above-button.png" x="2" y="2" width="width-4" height="height-4"/>
  581.     </draw_ops>
  582.   </button>
  583.  
  584.   <button function="above" state="pressed">
  585.     <draw_ops>
  586.       <include name="active_button_pressed"/>
  587.       <image filename="active-above-button.png" x="2" y="2" width="width-4" height="height-4"/>
  588.     </draw_ops>
  589.   </button>
  590.  
  591.   <button function="above" state="prelight">
  592.     <draw_ops>
  593.       <include name="active_button_prelight"/>
  594.       <image filename="active-above-button.png" x="2" y="2" width="width-4" height="height-4"/>
  595.     </draw_ops>
  596.   </button>
  597.  
  598.   <button function="unabove" state="normal">
  599.     <draw_ops>
  600.       <include name="active_button"/>
  601.       <image filename="active-unabove-button.png" x="2" y="2" width="width-4" height="height-4"/>
  602.     </draw_ops>
  603.   </button>
  604.  
  605.   <button function="unabove" state="pressed">
  606.     <draw_ops>
  607.       <include name="active_button_pressed"/>
  608.       <image filename="active-unabove-button.png" x="2" y="2" width="width-4" height="height-4"/>
  609.     </draw_ops>
  610.   </button>
  611.  
  612.   <button function="unabove" state="prelight">
  613.     <draw_ops>
  614.       <include name="active_button_prelight"/>
  615.       <image filename="active-unabove-button.png" x="2" y="2" width="width-4" height="height-4"/>
  616.     </draw_ops>
  617.   </button>
  618.  
  619.  <button function="stick" state="normal">
  620.     <draw_ops>
  621.       <include name="active_button"/>
  622.       <image filename="active-stick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  623.     </draw_ops>
  624.   </button>
  625.  
  626.   <button function="stick" state="pressed">
  627.     <draw_ops>
  628.       <include name="active_button_pressed"/>
  629.       <image filename="active-stick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  630.     </draw_ops>
  631.   </button>
  632.  
  633.   <button function="stick" state="prelight">
  634.     <draw_ops>
  635.       <include name="active_button_prelight"/>
  636.       <image filename="active-stick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  637.     </draw_ops>
  638.   </button>
  639.  
  640.  <button function="unstick" state="normal">
  641.     <draw_ops>
  642.       <include name="active_button"/>
  643.       <image filename="active-unstick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  644.     </draw_ops>
  645.   </button>
  646.  
  647.   <button function="unstick" state="pressed">
  648.     <draw_ops>
  649.       <include name="active_button_pressed"/>
  650.       <image filename="active-unstick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  651.     </draw_ops>
  652.   </button>
  653.  
  654.   <button function="unstick" state="prelight">
  655.     <draw_ops>
  656.       <include name="active_button_prelight"/>
  657.       <image filename="active-unstick-button.png" x="2" y="2" width="width-4" height="height-4"/>
  658.     </draw_ops>
  659.   </button>
  660.  
  661.   <button function="menu" state="normal">
  662.     <draw_ops>
  663.       <image colorize="gtk:bg[SELECTED]" filename="active-menu-button.png" x="0" y="0" width="width" height="height"/>
  664.     </draw_ops>
  665.   </button>
  666.  
  667.   <button function="menu" state="pressed">
  668.     <draw_ops>
  669.       <image colorize="gtk:bg[SELECTED]" filename="active-menu-button-pressed.png" x="0" y="0" width="width" height="height"/>
  670.     </draw_ops>
  671.   </button>
  672.   <button function="menu" state="prelight">
  673.     <draw_ops>
  674.       <image colorize="gtk:bg[SELECTED]" filename="active-menu-button-prelight.png" x="0" y="0" width="width" height="height"/>
  675.     </draw_ops>
  676.   </button>
  677. </frame_style>
  678.  
  679. <frame_style name="focused_maximized" geometry="normal" parent="focused">
  680.   <button function="maximize" state="normal">
  681.     <draw_ops>
  682.       <include name="active_button"/>
  683.       <image filename="active-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  684.     </draw_ops>
  685.   </button>
  686.   
  687.   <button function="maximize" state="pressed">
  688.     <draw_ops>
  689.       <include name="active_button_pressed"/>
  690.       <image filename="active-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  691.     </draw_ops>
  692.   </button>
  693.  
  694.   <button function="maximize" state="prelight">
  695.     <draw_ops>
  696.       <include name="active_button_prelight"/>
  697.       <image filename="active-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  698.     </draw_ops>
  699.   </button>
  700.  
  701. </frame_style>
  702.  
  703. <!-- Active (focused) shaded style -->
  704. <frame_style name="focused_shaded" geometry="normal" parent="focused">
  705.   <piece position="left_titlebar_edge">
  706.     <draw_ops>
  707.       <image colorize="gtk:bg[SELECTED]" filename="active-left-top-border-shaded.png" x="0" y="3" width="object_width" height="object_height"/>
  708.     </draw_ops>
  709.   </piece>
  710.   <piece position="right_titlebar_edge">
  711.     <draw_ops>
  712.       <image filename="active-right-top-border-shaded.png" x="width - object_width" y="3" width="object_width" height="object_height"/>
  713.     </draw_ops>
  714.   </piece>
  715. </frame_style>
  716.  
  717. <!-- Inactive border style -->
  718. <frame_style name="border_unfocused" geometry="border" parent="normal">
  719.   <piece position="title"><draw_ops/></piece>
  720.   <piece position="titlebar">
  721.     <draw_ops>
  722.       <image filename="inactive-top-left-corner.png" 
  723.              x="0" y="0" width="object_width" height="object_height"/>
  724.       <image filename="inactive-border-top-left-border.png" x="5" y="0" 
  725.              width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
  726.              height="object_height"/>
  727.       <image filename="inactive-top-mid-border.png" 
  728.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  729.              y="0" width="object_width" height="object_height"/>
  730.       <image filename="inactive-border-top-right-border.png"
  731.              x="((title_width + height / 2 + 32)) + 1" 
  732.              y="0" 
  733.              width="(width - title_width - height / 2 - 32 - 7) `max` 0"
  734.              height="object_height"/>
  735.       <image filename="inactive-top-right-corner.png" 
  736.              x="width - object_width" y="0" width="object_height" height="object_height"/>
  737.     </draw_ops>
  738.   </piece>
  739. </frame_style>
  740.  
  741. <!-- Active (focused) border style -->
  742. <frame_style name="border_focused" geometry="border" parent="focused">
  743.   <piece position="title"><draw_ops/></piece>
  744.   <piece position="titlebar">
  745.     <draw_ops>
  746.       <image filename="active-top-left-corner.png" 
  747.              colorize="gtk:bg[SELECTED]"
  748.              x="0" y="0" width="object_width" height="object_height"/>
  749.       <image filename="active-border-top-left-border.png" 
  750.              colorize="gtk:bg[SELECTED]" x="5" y="0"
  751.              width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
  752.              height="object_height"/>
  753.       <image filename="active-top-mid-left-border.png" 
  754.              colorize="gtk:bg[SELECTED]"
  755.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  756.              y="0" width="object_width" height="object_height"/>
  757.       <image filename="active-top-mid-right-border.png" 
  758.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  759.              y="0" width="object_width" height="object_height"/>
  760.       <image filename="active-border-top-right-border.png"
  761.              x="((title_width + height / 2 + 32)) + 1" y="0" 
  762.              width="(width - title_width - height / 2 - 32 - 7) `max` 0"
  763.              height="object_height"/>
  764.       <image filename="active-top-right-corner.png" 
  765.              x="width - object_width" y="0" width="object_height" height="object_height"/>
  766.     </draw_ops>
  767.   </piece>
  768. </frame_style>
  769.  
  770. <frame_style_set name="normal">
  771. <frame focus="yes" state="shaded" resize="both" style="focused_shaded"/>
  772. <frame focus="yes" state="normal" resize="both" style="focused"/>
  773. <frame focus="yes" state="maximized" style="focused_maximized"/>
  774. <frame focus="yes" state="maximized_and_shaded" style="focused_maximized"/>
  775. <frame focus="no" state="normal" resize="both" style="normal"/>
  776. <frame focus="no" state="shaded" resize="both" style="normal_shaded"/>
  777. <frame focus="no" state="maximized" style="normal_maximized"/>
  778. <frame focus="no" state="maximized_and_shaded" style="normal_maximized"/>
  779. </frame_style_set>
  780.  
  781. <frame_style_set name="border">
  782. <frame focus="yes" state="normal" resize="both" style="border_focused"/>
  783. <frame focus="yes" state="maximized" style="border_focused"/>
  784. <frame focus="yes" state="shaded" resize="both" style="border_focused"/>
  785. <frame focus="yes" state="maximized_and_shaded" style="border_focused"/>
  786. <frame focus="no" state="normal" resize="both" style="border_unfocused"/>
  787. <frame focus="no" state="maximized" style="border_unfocused"/>
  788. <frame focus="no" state="shaded" resize="both" style="border_unfocused"/>
  789. <frame focus="no" state="maximized_and_shaded" style="border_unfocused"/>
  790. </frame_style_set>
  791.  
  792. <window type="normal" style_set="normal"/>
  793. <window type="dialog" style_set="normal"/>
  794. <window type="modal_dialog" style_set="normal"/>
  795. <window type="menu" style_set="normal"/>
  796. <window type="utility" style_set="normal"/>
  797. <window type="border" style_set="border"/>
  798.  
  799. <menu_icon function="close" state="normal">
  800.   <draw_ops> 
  801.     <image filename="active-close-button.png" 
  802.            x="(width - object_width) / 2"
  803.            y="(height - object_height) / 2"
  804.            width="object_width" height="object_height"/>
  805.   </draw_ops>
  806. </menu_icon>
  807.  
  808. <menu_icon function="maximize" state="normal">
  809.   <draw_ops>
  810.     <image filename="active-maximize-button.png" 
  811.            x="(width - object_width) / 2"
  812.            y="(height - object_height) / 2"
  813.            width="object_width" height="object_height"/>
  814.   </draw_ops>
  815. </menu_icon>
  816.  
  817.  
  818. <menu_icon function="minimize" state="normal">
  819.   <draw_ops>
  820.     <image filename="active-minimize-button.png" 
  821.            x="(width - object_width) / 2"
  822.            y="(height - object_height) / 2"
  823.            width="object_width" height="object_height"/>
  824.   </draw_ops>
  825. </menu_icon>
  826.  
  827. <menu_icon function="unmaximize" state="normal">
  828.   <draw_ops>
  829.   </draw_ops>
  830. </menu_icon>
  831.  
  832. </metacity_theme>
  833.